home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 41
/
Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso
/
Aminet
/
comm
/
misc
/
ClipWatch.lha
/
ClipWatch
/
Sources
/
ClipWatch_GuiExtern.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-12-16
|
2KB
|
80 lines
#ifdef __GNUC__
SAVEDS ASM char *DisplayHookRessources(
REG(a2,char **array),
REG(a1,struct Ressources *R))
#else
SAVEDS ASM char *DisplayHookRessources(
REG(a2) char **array,
REG(a1) struct Ressources *R)
#endif
{
int nbr;
static char num[8];
if (R)
{
nbr=(int)array[-1];
sprintf(num, "%d", nbr);
*array++ = num;
*array++=R->Libelle;
*array++=R->Etat;
}
else
{
*array++ = "\33bNum";
*array++ = "\33bLibelle";
*array = "\33bEtat";
}
return(0);
}
#ifdef __GNUC__
SAVEDS ASM char *DisplayHookEvenements(
REG(a2,char **array),
REG(a1,struct Evenements *E))
#else
SAVEDS ASM char *DisplayHookEvenements(
REG(a2) char **array,
REG(a1) struct Evenements *E)
#endif
{
if (E)
{
*array++=E->Index;
*array++=E->Date;
*array++=E->NumRess;
*array++=E->LibelleRess;
*array++=E->EtatRess;
*array++=E->Classe;
*array++=E->Zone;
*array=E->Code;
}
else
{
*array++ = "\33bIndex";
*array++ = "\33bDate";
*array++ = "\33bRess";
*array++ = "\33bLibelle";
*array++ = "\33bEtat";
*array++ = "\33bClasse";
*array++ = "\33bZone";
*array = "\33bCode";
}
return(0);
}
#ifdef __GNUC__
SAVEDS ASM char *DisplayHookTraceNum(
REG(a2,char **array),
REG(a1,struct AffiTraceNum *TN))
#else
SAVEDS ASM char *DisplayHookTraceNum(
REG(a2) char **array,
REG(a1) struct AffiTraceNum *TN)
#endif
{
*array++=TN->Date;
*array++=TN->Heure;
*array =TN->Valeur;
return(0);
}